package com.woniuxy.dr_mall.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 张哲轩
 * @since 2021-08-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class DrUser implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    private String account;

    private String password;

    private String name;

    private String tel;

    @TableField("nickName")
    private String nickname;

    private String gender;

    private String birthday;

    private String province;

    private String city;

    private String district;

    @TableField(exist = false)
    private  int provinceId;
    @TableField(exist = false)
    private  int cityId;
    @TableField(exist = false)
    private int districtId;

    private String address;

    private String avatar;

    @TableField("IdCard")
    private String idCard;

    private String status;

    @TableField(exist = false)
    private String newPassword;

    //年
    @TableField(exist = false)
    private String year;
    //月
    @TableField(exist = false)
    private String month;
    //日
    @TableField(exist = false)
    private String day;

    @TableField(exist = false)
    private int orderCount;

    @TableField(exist = false)
    private int commentCount;
}
